package net.jalisq.builder.joins;


import net.jalisq.builder.Select;

public enum JoinType implements IJoinType {
	JOIN,
	
	INNER_JOIN {
		
		@Override
		public String toKeyword() {
			return "INNER JOIN";
		}
	},
	
	
	CROSS_JOIN {
			@Override
			public String toKeyword() {
				return "CROSS JOIN";
			}
		}
	,
	STRAIGHT_JOIN
	
	;
	
	public final IJoin makeJoin(Select select){
		return new JoinImpl(this, select);
	}
	public String toKeyword() {
		return toString();
	}
	public String getName() {
		return name().toString();
	}
	
}
